package com.lanou3g.code0409.common;

import java.util.Scanner;

/**
 * Created by dllo on 18/4/9.
 */
public class RepeatTest {

    public static void main(String[] args) {
        // 用户输入两次密码,判断是否一致
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入密码");
        String pwd = scanner.nextLine();
        System.out.println("请输入确认密码");
        String pwd1 = scanner.nextLine();
        if (pwd.equals(pwd1)){
            System.out.println("两次密码一样");
        }else {
            System.out.println("密码错误");
        }

    }
}
